package com.house.entity;

import java.util.Date;

public class Message {
	/**
	 * 留言id
	 */
	private int id;
	/**
	 * 发送人
	 */
	private User fromUser;
	/**
	 * 接收人
	 */
	private User toUser;
	/**
	 * 留言时间
	 */
	private Date createTime;
	/**
	 * 留言内容
	 */
	private String content;
	/**
	 * 是否阅读
	 */
	private int isRead;
	/**
	 * 发送人是否删除
	 */
	private int isDeletedByFormUser;
	/**
	 * 接收人是否删除
	 */
	private int isDeletedByToUser;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public User getFromUser() {
		return fromUser;
	}
	public void setFromUser(User fromUser) {
		this.fromUser = fromUser;
	}
	public User getToUser() {
		return toUser;
	}
	public void setToUser(User toUser) {
		this.toUser = toUser;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getIsRead() {
		return isRead;
	}
	public void setIsRead(int isRead) {
		this.isRead = isRead;
	}
	public int getIsDeletedByFormUser() {
		return isDeletedByFormUser;
	}
	public void setIsDeletedByFormUser(int isDeletedByFormUser) {
		this.isDeletedByFormUser = isDeletedByFormUser;
	}
	public int getIsDeletedByToUser() {
		return isDeletedByToUser;
	}
	public void setIsDeletedByToUser(int isDeletedByToUser) {
		this.isDeletedByToUser = isDeletedByToUser;
	}
	public Message(int id, User fromUser, User toUser, Date createTime,
			String content, int isRead, int isDeletedByFormUser,
			int isDeletedByToUser) {
		super();
		this.id = id;
		this.fromUser = fromUser;
		this.toUser = toUser;
		this.createTime = createTime;
		this.content = content;
		this.isRead = isRead;
		this.isDeletedByFormUser = isDeletedByFormUser;
		this.isDeletedByToUser = isDeletedByToUser;
	}
	public Message() {
		super();
	}
	
	
}
